<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="col-sm-12">
                        <h4>发布文章</h4>
                    </div>
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-1 control-label">标题：</label>
                            <div class="col-sm-4">
                                <input id="title" AUTOCOMPLETE="off" name="title" class="form-control" type="text">
                            </div>
                            <label class="col-sm-1 control-label">作者：</label>
                            <div class="col-sm-4">
                                <input id="author" AUTOCOMPLETE="off" name="author" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <input id="created" AUTOCOMPLETE="off" name="created" class="form-control"
                               type="hidden"> <input id="ownerId" AUTOCOMPLETE="off" name="ownerId"
                                                     class="form-control" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-1 control-label">邮箱：</label>
                            <div class="col-sm-4">
                                <input id="email" AUTOCOMPLETE="off" name="email" class="form-control" type="text">
                            </div>
                            <label class="col-sm-1 control-label">链接地址：</label>
                            <div class="col-sm-4">
                                <input id="url" AUTOCOMPLETE="off" name="url" class="form-control" type="text">
                            </div>
                        </div>
                        <input id="ip" AUTOCOMPLETE="off" name="ip" class="form-control" type="hidden">
                        <input id="agent" AUTOCOMPLETE="off" name="agent" class="form-control" type="hidden">
                        <div class="form-group">
                            <input id="content" AUTOCOMPLETE="off" name="content" type="hidden"> <label
                                class="col-sm-1 control-label">内容：</label>
                            <div class="col-sm-11">
                                <div class="ibox-content no-padding">
                                    <div id="content_sn" class="summernote"></div>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">

                            <label class="col-sm-1 control-label">类型：</label>
                            <div class="col-sm-11">
                                <input id="type" AUTOCOMPLETE="off" name="type" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">开启评论：</label>
                            <div class="switch onoffswitch col-sm-1">
                                <div class="onoffswitch">
                                    <input type="checkbox" checked="" class="onoffswitch-checkbox"
                                           id="example1"> <label class="onoffswitch-label"
                                                                 for="example1"> <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
                                </div>
                            </div>

                            <label class="col-sm-2 control-label">允许订阅：</label>
                            <div class="switch onoffswitch col-sm-2">
                                <div class="onoffswitch">
                                    <input type="checkbox" checked="" class="onoffswitch-checkbox"
                                           id="example3"> <label class="onoffswitch-label"
                                                                 for="example3"> <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
                                </div>
                            </div>
                        </div>

                        <input id="parent" AUTOCOMPLETE="off" name="parent" class="form-control"
                               type="hidden">
                        <div class="text-right form-group">
                            <a class="btn btn-default waves-effect waves-light"
                               href="admin/article">返回列表</a>
                            <button type="button"
                                    class="btn btn-primary waves-effect waves-light"
                                    onclick="save()">保存文章
                            </button>
                            <button type="button"
                                    class="btn btn-warning waves-effect waves-light"
                                    onclick="subArticle('draft');">存为草稿
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<div th:include="include::footer"></div>

<script type="text/javascript" src="js/appjs/blog/bComments/add.js">

</script>
</body>
</html>
